from direct.showbase.ShowBase import ShowBase


class Planet(ShowBase):

    def __init__(self):
        ShowBase.__init__(self)

        # Load the environment model.
        self.scene = self.loader.loadModel("../../resources/Earth.gltf")
        # Reparent the model to render.
        self.scene.reparentTo(self.render)
        # Apply scale and position transforms on the model.
        self.scene.setScale(0.1, 0.1, 0.1)
        self.scene.setPos(-8, 42, 0)
